﻿using System.Data;
using MyWeb.Data;

namespace MyWeb.Business
{
    public class CustomerService
    {
        private readonly CustomerController _customerController = new CustomerController();

        #region [Customer_GetByAll]

        public DataTable Customer_GetByAll()
        {
            return _customerController.Customer_GetByAll();
        }

        #endregion

        #region [Customer_GetById]

        public DataTable Customer_GetById(int Id)
        {
            return _customerController.Customer_GetById(Id);
        }

        #endregion

        #region [Customer_Insert]

        public void Customer_Insert(CustomerInfo customer)
        {
            _customerController.Customer_Insert(customer);
        }

        #endregion

        #region [Customer_Update]

        public void Customer_Update(CustomerInfo customer)
        {
            _customerController.Customer_Update(customer);
        }

        #endregion

        #region [Customer_Delete]

        public void Customer_Delete(int id)
        {
            _customerController.Customer_Delete(id);
        }

        #endregion
    }
}